package com.wang;

import com.alibaba.nacos.spring.context.annotation.config.EnableNacosConfig;
import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * Hello world!
 *
 */
@NacosPropertySource(dataId = "${dubbo.application.name}", autoRefreshed = true)
@EnableDubbo(scanBasePackages = "com.wang.service.impl")
@EnableNacosConfig
@SpringBootApplication
public class DubboDemoProviderApplication {
    public static void main( String[] args ) {
        SpringApplication.run(DubboDemoProviderApplication.class,args);
        System.out.println( "Hello World!" );
    }
}
